package com.basic.business.order.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 订单合并表 t_orders_merge
 *
 * @author zhaoxy_jn@163.com
 */
@Getter
@Setter
public class TOrdersMerge implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 子系统订单号 */
    @JSONField(name = "sid")
    private long mergeSid;

    /** 主系统订单号 */
    @JSONField(deserialize = false)
    private long mainSid;

    /** 平台订单号 */
    private String tid;

    /** 订单状态 */
    private String sysStatus;

    /** 是否是主合并订单，1表示是，0表示否 */
    private int isMergeMain;

    /** 平台上的卖家备注 */
    private String sellerMemo;

    /** 下单时间 */
    private long created;

    /** 数据接入时间 */
    @JSONField(deserialize = false)
    private long accessTime;

    public TOrdersMerge() {
        this.accessTime = System.currentTimeMillis();
    }

    @Override
    public String toString() {
        return "TOrdersMerge{" +
                "mergeSid=" + mergeSid +
                ", mainSid=" + mainSid +
                ", tid='" + tid + '\'' +
                ", sysStatus='" + sysStatus + '\'' +
                ", isMergeMain=" + isMergeMain +
                ", sellerMemo='" + sellerMemo + '\'' +
                ", created=" + created +
                ", accessTime=" + accessTime +
                '}';
    }
}
